package adapter.example;

/**
 * @author Chen Guang
 * @date 2019/4/16 0016 下午 15:34
 */
public class Test {
    public static void main(String[] args) {
        Player a = new Forwards("巴蒂尔");
        a.defence();

        Player m = new Guards("特雷斯麦克格雷迪");
        m.attack();

        Player c = new Translator("Yao");
        c.attack();
        c.defence();
    }
}
